package banking3;

/**
 * Created with IntelliJ IDEA
 * Description:
 * User:恋恋
 * Date:2022-09-27
 * Time:20:08
 */
public class Bank {
    Customer[] customers;
    int numberOfCustomer;

    public Bank(Customer[] customers) {
        this.customers = customers;
    }
    public void addCustomer(String firstName,String lastName){
        Customer customer=new Customer(firstName,lastName);
        customers[numberOfCustomer]=customer;
        numberOfCustomer++;
    }
    public int getNumberOfCustomer() {
        return numberOfCustomer;
    }

    public Customer getCustomer(int i){
        return customers[i];
    }
}
